package br.com.sigupper.entidades;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import br.com.sigupper.util.IGenericCrud;
@Entity
@PrimaryKeyJoinColumn(name="cliente_id")
@Table(name="cliente_juridica")

public class ClienteJuridica  extends Cliente implements IGenericCrud {
	
	@Column(name="pjuridica_cnpj",nullable=false,length=14)
	private String pjuridicaCnpj;
	
	@Column(name="pjuridica_razao_social",nullable=false,length=150)
    private String pjuridicaRazaoSocial;
	
	@Column(name="pjuridica_contato",nullable=false,length=100)
    private String pjuridicaContato;

    public ClienteJuridica() {
    }

    public ClienteJuridica(Endereco endereco, Date clienteDtCadastro, String clienteEmail,List<Telefone> telefones,String pjuridicaCnpj, String pjuridicaRazao,String pjuridicaContato) {
    	this.setEndereco(endereco);
    	this.setClienteDtCadastro(clienteDtCadastro);
    	this.setClienteEmail(clienteEmail);
    	this.setTelefones(telefones);
    	this.pjuridicaCnpj = pjuridicaCnpj;
    	this.pjuridicaRazaoSocial = pjuridicaRazao;
    	this.pjuridicaContato = pjuridicaContato;
    }
   
    public String getPjuridicaCnpj() {
        return this.pjuridicaCnpj;
    }
    
    public void setPjuridicaCnpj(String pjuridicaCnpj) {
        this.pjuridicaCnpj = pjuridicaCnpj;
    }

   public String getPjuridicaRazao() {
        return this.pjuridicaRazaoSocial;
    }
    
    public void setPjuridicaRazao(String pjuridicaRazao) {
        this.pjuridicaRazaoSocial = pjuridicaRazao;
    }

    public String getPjuridicaContato() {
        return this.pjuridicaContato;
    }
    
    public void setPjuridicaContato(String pjuridicaContato) {
        this.pjuridicaContato = pjuridicaContato;
    }

}


